package com.lxw.manage_media.service;

import com.lxw.framework.domain.media.request.QueryMediaFileRequest;
import com.lxw.framework.domain.media.response.CheckChunkResult;
import com.lxw.framework.model.response.QueryResponseResult;
import com.lxw.framework.model.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

public interface IMediaUploadService {
    ResponseResult register(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt);

    CheckChunkResult checkchunk(String fileMd5, Integer chunk, Integer chunkSize);

    ResponseResult uploadchunk(MultipartFile file, Integer chunk, String fileMd5) ;

    ResponseResult mergechunks(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt);

    QueryResponseResult findList(Integer page, Integer pageSize, QueryMediaFileRequest qpr);

    ResponseResult process(String mediaId);
}
